package com.unusap.remote.unutrip.dto;

import com.unusap.remote.core.register.dto.RegisterValidateRequest;
import com.unusap.remote.core.dto.ValueEntry;
import com.unusap.remote.unutrip.namespace.UnutripNameSpace;

/**
 * Created by IntelliJ IDEA.
 * User: danson
 * Date: 2009-8-21
 * Time: 11:36:07
 * To change this template use File | Settings | File Templates.
 */
public class UnutripRegisterValidateRequest extends RegisterValidateRequest {

    /**
	 * 
	 */
	private static final long serialVersionUID = -8792870581853377657L;

	public UnutripRegisterValidateRequest setCardNo(String cardNo) {
        addValidateEntry(new ValueEntry(UnutripNameSpace.RegisterValidation.CARD_NO, cardNo));
        return this;
    }

    public String getCardNo() {
        return getValidEntry(UnutripNameSpace.RegisterValidation.CARD_NO).getValue();
    }

    public UnutripRegisterValidateRequest setCardRegistCode(String cardRegistCode) {
        addValidateEntry(new ValueEntry(UnutripNameSpace.RegisterValidation.CARD_REGIST_CODE, cardRegistCode));
        return this;
    }

    public String getCardRegistCode() {
        return getValidEntry(UnutripNameSpace.RegisterValidation.CARD_REGIST_CODE).getValue();
    }

}
